<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
        	height: 100%;
            background-color: #f8f8f8;
        }
        .main {
        	height: 100%;
        	padding: 15px;
        	box-sizing: border-box;
        	display: -webkit-box;
        	-webkit-box-align: center;
        }
        .main img {
            max-width: 100%;
            vertical-align: middle;
            margin: 0 auto;
        	display: block;
        }
    </style>
</head>
<body>
    <div class="main">
    	<img class="my_img" src="../image/my.png">
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript">
    apiready = function(){
        staffData = $api.getStorage('staff_data');
        if(staffData){
            $(".my_img").attr('src',formatHeadImg(staffData.img));
        }

        api.addEventListener({
            name: 'changeStaffHead'
        }, function(ret, err){
            if( ret ){
                $(".my_img").attr('src',formatHeadImg(ret.value.path));
            }
        });

    };
</script>
</html>